package com.iteaj.demo.listener;

import com.iteaj.network.event.DeviceEventListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class DeviceOnlineListener implements DeviceEventListener {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public void deviceOfflineHandle(String deviceSn) {
        logger.info("设备事件 设备断线 - 设备编号: {}", deviceSn);
    }

    @Override
    public void deviceOnlineHandle(String deviceSn) {
        logger.info("设备事件 设备上线 - 设备编号: {}", deviceSn);
    }
}
